Skip to content

fix(app): showSession() on openTerminal error path - #19

Merged
JeanBaptisteRenard merged 1 commit into
mainfrom
fix/openterminal-error-visible
May 30, 2026
Merged

fix(app): showSession() on openTerminal error path#19
JeanBaptisteRenard merged 1 commit into
mainfrom
fix/openterminal-error-visible

Conversation

@JeanBaptisteRenard

Copy link
Copy Markdown
Collaborator

What

Adds 2 missing `showSession(sessionId)` calls on the error paths of `launchNewSession` and `openSession` in `public/app.js`.

Why

When `openTerminal` fails (e.g. a deleted worktree, missing project path), the error message is written to the terminal entry's buffer but the terminal is never shown — so the user sees nothing. This change makes the failing terminal visible so the error text is actually surfaced.

Bonus sub-fix lifted out of upstream PR #35 (@HaydnG). Independently useful regardless of whether the full remap feature lands.

Risk

Trivial — 2 lines, both in error branches that already populate the terminal buffer. `showSession` already runs on the success paths.

@JeanBaptisteRenard
JeanBaptisteRenard merged commit dbbc8fa into main May 30, 2026
7 checks passed
@JeanBaptisteRenard
JeanBaptisteRenard deleted the fix/openterminal-error-visible branch May 30, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant